package com.yupi.yupicturebackend.controller;

import com.yupi.yupicturebackend.common.BaseResponse;
import com.yupi.yupicturebackend.common.ResultUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
@Api(tags = "接口健康测试")
public class testController {

    /**
     * 健康检查
     */
    @GetMapping("/health")
    @ApiOperation(value = "检查接口能否正常工作")
    public BaseResponse<String> health() {
        return ResultUtils.success("接口测试成功了");
    }
}
